# -*- coding: utf-8 -*-
from django.db import models
from south.db import db
from south.utils import datetime_utils as datetime
from south.v2 import SchemaMigration


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'PosDetail.itemID'
        db.add_column(u'apiManager_posdetail', 'itemID',
                      self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['apiManager.PosList']),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'PosDetail.itemID'
        db.delete_column(u'apiManager_posdetail', 'itemID_id')


    models = {
        u'apiManager.accountbalance': {
            'Meta': {'object_name': 'AccountBalance'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'walletAccountKey1000': ('django.db.models.fields.FloatField', [], {}),
            'walletAccountKey1001': ('django.db.models.fields.FloatField', [], {}),
            'walletAccountKey1002': ('django.db.models.fields.FloatField', [], {}),
            'walletAccountKey1003': ('django.db.models.fields.FloatField', [], {}),
            'walletAccountKey1004': ('django.db.models.fields.FloatField', [], {}),
            'walletAccountKey1005': ('django.db.models.fields.FloatField', [], {}),
            'walletAccountKey1006': ('django.db.models.fields.FloatField', [], {})
        },
        u'apiManager.api': {
            'Meta': {'object_name': 'Api'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'apiName': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiNames']"}),
            'apiStatus': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True'}),
            'apiUrl': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True'}),
            'cachedUntil': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            'currentTime': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        u'apiManager.apiaccount': {
            'Meta': {'object_name': 'ApiAccount'},
            'accountID': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'accountName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'accountType': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'keyID': ('django.db.models.fields.IntegerField', [], {}),
            'vCode': ('django.db.models.fields.CharField', [], {'max_length': '400'})
        },
        u'apiManager.apiinfo': {
            'Meta': {'object_name': 'ApiInfo'},
            'accessMask': ('django.db.models.fields.IntegerField', [], {}),
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'apiType': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'characterID': ('django.db.models.fields.IntegerField', [], {}),
            'characterName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'corporationID': ('django.db.models.fields.IntegerField', [], {}),
            'corporationName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'keyExpire': ('django.db.models.fields.CharField', [], {'max_length': '200'})
        },
        u'apiManager.apinames': {
            'Meta': {'object_name': 'ApiNames'},
            'apiName': ('django.db.models.fields.CharField', [], {'max_length': '200', 'primary_key': 'True'}),
            'fileName': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
            'filePath': ('django.db.models.fields.FilePathField', [], {'max_length': '100', 'null': 'True'}),
            'urlBase': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'urlRadical': ('django.db.models.fields.CharField', [], {'max_length': '200'})
        },
        u'apiManager.asset': {
            'Meta': {'object_name': 'Asset'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'flag': ('django.db.models.fields.IntegerField', [], {}),
            'itemID': ('django.db.models.fields.BigIntegerField', [], {'primary_key': 'True'}),
            'locationID': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
            'parentID': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}),
            'quantity': ('django.db.models.fields.IntegerField', [], {}),
            'rawQuantity': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
            'singleton': ('django.db.models.fields.IntegerField', [], {}),
            'typeID': ('django.db.models.fields.IntegerField', [], {})
        },
        u'apiManager.corpsheet': {
            'Meta': {'object_name': 'CorpSheet'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'allianceID': ('django.db.models.fields.IntegerField', [], {}),
            'ceoID': ('django.db.models.fields.IntegerField', [], {}),
            'ceoName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'color1': ('django.db.models.fields.IntegerField', [], {}),
            'color2': ('django.db.models.fields.IntegerField', [], {}),
            'color3': ('django.db.models.fields.IntegerField', [], {}),
            'corpDescription': ('django.db.models.fields.CharField', [], {'max_length': '800'}),
            'corpTaxe': ('django.db.models.fields.FloatField', [], {}),
            'corpTicket': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'corpUrl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
            'corporationID': ('django.db.models.fields.IntegerField', [], {}),
            'corporationName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1000': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1001': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1002': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1003': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1004': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1005': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'divAccountKey1006': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'factionID': ('django.db.models.fields.IntegerField', [], {}),
            'graphicID': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'memberCount': ('django.db.models.fields.IntegerField', [], {}),
            'memberLimit': ('django.db.models.fields.IntegerField', [], {}),
            'shape1': ('django.db.models.fields.IntegerField', [], {}),
            'shape2': ('django.db.models.fields.IntegerField', [], {}),
            'shape3': ('django.db.models.fields.IntegerField', [], {}),
            'shares': ('django.db.models.fields.IntegerField', [], {}),
            'stationID': ('django.db.models.fields.IntegerField', [], {}),
            'stationName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1000': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1001': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1002': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1003': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1004': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1005': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'walletAccountKey1006': ('django.db.models.fields.CharField', [], {'max_length': '200'})
        },
        u'apiManager.industryjob': {
            'Meta': {'object_name': 'IndustryJob'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'activityID': ('django.db.models.fields.IntegerField', [], {}),
            'assemblyLineID': ('django.db.models.fields.BigIntegerField', [], {}),
            'beginProductionTime': ('django.db.models.fields.DateTimeField', [], {}),
            'charMaterialMultiplier': ('django.db.models.fields.FloatField', [], {}),
            'charTimeMultiplier': ('django.db.models.fields.FloatField', [], {}),
            'completed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'completedStatus': ('django.db.models.fields.IntegerField', [], {}),
            'completedSuccessfully': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'containerID': ('django.db.models.fields.BigIntegerField', [], {}),
            'containerLocationID': ('django.db.models.fields.IntegerField', [], {}),
            'containerTypeID': ('django.db.models.fields.IntegerField', [], {}),
            'endProductionTime': ('django.db.models.fields.DateTimeField', [], {}),
            'installTime': ('django.db.models.fields.DateTimeField', [], {}),
            'installedInSolarSystemID': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemCopy': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemFlag': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemID': ('django.db.models.fields.BigIntegerField', [], {}),
            'installedItemLicensedProductionRunsRemaining': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemLocationID': ('django.db.models.fields.BigIntegerField', [], {}),
            'installedItemMaterialLevel': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemProductivityLevel': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemQuantity': ('django.db.models.fields.IntegerField', [], {}),
            'installedItemTypeID': ('django.db.models.fields.IntegerField', [], {}),
            'installerID': ('django.db.models.fields.IntegerField', [], {}),
            'jobID': ('django.db.models.fields.BigIntegerField', [], {'primary_key': 'True'}),
            'licensedProductionRuns': ('django.db.models.fields.IntegerField', [], {}),
            'materialMultiplier': ('django.db.models.fields.FloatField', [], {}),
            'outputFlag': ('django.db.models.fields.IntegerField', [], {}),
            'outputLocationID': ('django.db.models.fields.BigIntegerField', [], {}),
            'outputTypeID': ('django.db.models.fields.IntegerField', [], {}),
            'pauseProductionTime': ('django.db.models.fields.DateTimeField', [], {}),
            'runs': ('django.db.models.fields.IntegerField', [], {}),
            'timeMultiplier': ('django.db.models.fields.FloatField', [], {})
        },
        u'apiManager.marketorders': {
            'Meta': {'object_name': 'MarketOrders'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'accountKey': ('django.db.models.fields.IntegerField', [], {}),
            'bid': ('django.db.models.fields.FloatField', [], {}),
            'charID': ('django.db.models.fields.IntegerField', [], {}),
            'duration': ('django.db.models.fields.IntegerField', [], {}),
            'escrow': ('django.db.models.fields.FloatField', [], {}),
            'issued': ('django.db.models.fields.DateTimeField', [], {}),
            'minVolume': ('django.db.models.fields.IntegerField', [], {}),
            'orderID': ('django.db.models.fields.BigIntegerField', [], {'primary_key': 'True'}),
            'orderState': ('django.db.models.fields.IntegerField', [], {}),
            'price': ('django.db.models.fields.FloatField', [], {}),
            'range': ('django.db.models.fields.IntegerField', [], {}),
            'stationID': ('django.db.models.fields.IntegerField', [], {}),
            'typeID': ('django.db.models.fields.IntegerField', [], {}),
            'volEntered': ('django.db.models.fields.IntegerField', [], {}),
            'volRemaining': ('django.db.models.fields.IntegerField', [], {})
        },
        u'apiManager.posdetail': {
            'Meta': {'object_name': 'PosDetail'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'allowAllyMembers': ('django.db.models.fields.IntegerField', [], {}),
            'allowCorpMembers': ('django.db.models.fields.IntegerField', [], {}),
            'delployFlags': ('django.db.models.fields.IntegerField', [], {}),
            'fuel_1_ID': ('django.db.models.fields.IntegerField', [], {}),
            'fuel_1_qty': ('django.db.models.fields.IntegerField', [], {}),
            'fuel_2_ID': ('django.db.models.fields.IntegerField', [], {}),
            'fuel_2_qty': ('django.db.models.fields.IntegerField', [], {}),
            'fuel_3_ID': ('django.db.models.fields.IntegerField', [], {}),
            'fuel_3_qty': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'itemID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.PosList']"}),
            'onAggression': ('django.db.models.fields.IntegerField', [], {}),
            'onCorpWar': ('django.db.models.fields.IntegerField', [], {}),
            'onStandingDrop': ('django.db.models.fields.FloatField', [], {}),
            'onStatusDrop_enabled': ('django.db.models.fields.IntegerField', [], {}),
            'onStatusDrop_standing': ('django.db.models.fields.FloatField', [], {}),
            'onlineTimestamp': ('django.db.models.fields.DateTimeField', [], {}),
            'state': ('django.db.models.fields.IntegerField', [], {}),
            'stateTimestamp': ('django.db.models.fields.DateTimeField', [], {}),
            'usageFlags': ('django.db.models.fields.IntegerField', [], {}),
            'useStandingsFrom': ('django.db.models.fields.IntegerField', [], {})
        },
        u'apiManager.poslist': {
            'Meta': {'object_name': 'PosList'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'itemID': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
            'locationID': ('django.db.models.fields.IntegerField', [], {}),
            'moonID': ('django.db.models.fields.IntegerField', [], {}),
            'onlineTimestamp': ('django.db.models.fields.DateTimeField', [], {}),
            'standingOwnerID': ('django.db.models.fields.IntegerField', [], {}),
            'state': ('django.db.models.fields.IntegerField', [], {}),
            'stateTimestamp': ('django.db.models.fields.DateTimeField', [], {}),
            'typeID': ('django.db.models.fields.IntegerField', [], {})
        },
        u'apiManager.walletjournal': {
            'Meta': {'object_name': 'WalletJournal'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'amount': ('django.db.models.fields.FloatField', [], {}),
            'argID1': ('django.db.models.fields.IntegerField', [], {}),
            'argName1': ('django.db.models.fields.CharField', [], {'max_length': '400'}),
            'balance': ('django.db.models.fields.FloatField', [], {}),
            'date': ('django.db.models.fields.DateTimeField', [], {}),
            'owner1TypeID': ('django.db.models.fields.IntegerField', [], {}),
            'owner2TypeID': ('django.db.models.fields.IntegerField', [], {}),
            'ownerID1': ('django.db.models.fields.BigIntegerField', [], {}),
            'ownerID2': ('django.db.models.fields.BigIntegerField', [], {}),
            'ownerName1': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'ownerName2': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'reason': ('django.db.models.fields.CharField', [], {'max_length': '400'}),
            'refID': ('django.db.models.fields.BigIntegerField', [], {'primary_key': 'True'}),
            'refTypeID': ('django.db.models.fields.BigIntegerField', [], {})
        },
        u'apiManager.wallettransaction': {
            'Meta': {'object_name': 'WalletTransaction'},
            'accountID': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['apiManager.ApiAccount']"}),
            'characterID': ('django.db.models.fields.IntegerField', [], {}),
            'characterName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'clientID': ('django.db.models.fields.IntegerField', [], {}),
            'clientName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'clientTypeID': ('django.db.models.fields.IntegerField', [], {}),
            'journalTransactionID': ('django.db.models.fields.IntegerField', [], {}),
            'price': ('django.db.models.fields.FloatField', [], {}),
            'quantity': ('django.db.models.fields.IntegerField', [], {}),
            'stationID': ('django.db.models.fields.IntegerField', [], {}),
            'stationName': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'transactionDateTime': ('django.db.models.fields.DateTimeField', [], {}),
            'transactionFor': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'transactionID': ('django.db.models.fields.BigIntegerField', [], {'primary_key': 'True'}),
            'transactionType': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'typeID': ('django.db.models.fields.IntegerField', [], {}),
            'typeName': ('django.db.models.fields.CharField', [], {'max_length': '200'})
        }
    }

    complete_apps = ['apiManager']